package com.example.response;
import com.example.common.response.ResultCode;
import lombok.ToString;

@ToString
public enum UserCode implements ResultCode {

    USER_NOT_FOUND(false,21001,"用户信息不存在");

    //操作结果
    boolean success;

    //操作代码
    int code;

    //提示信息
    String message;

    private UserCode(boolean success, int code, String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
